using System.Collections.Generic;
using Webshop20.Application.DataTransferObjects;

namespace Webshop20.Application.Queries.Messages
{
    public class ProductFullTextSearchResponse : MessageBase
    {
        private readonly string searchTerm;
        private readonly int page;
        private readonly int pageSize;
        private readonly IEnumerable<ProductDTO> products;

        public ProductFullTextSearchResponse(string searchTerm, int page, int pageSize, IEnumerable<ProductDTO> products)
        {
            this.searchTerm = searchTerm;
            this.products = products;
            this.pageSize = pageSize;
            this.page = page;
        }

        public IEnumerable<ProductDTO> Products
        {
            get { return products; }
        }

        public int PageSize
        {
            get { return pageSize; }
        }

        public int Page
        {
            get { return page; }
        }

        public string SearchTerm
        {
            get { return searchTerm; }
        }
    }
}